]> dgit.raspbian.org Git - gnome-shell.git/commit
st/icon: Add :is-symbolic property
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 8 May 2024 10:56:54 +0000 (12:56 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 9 May 2024 17:47:32 +0000 (17:47 +0000)
commit56cc755bf62497debf8ecfdcbf5303862007a05c
treefd3c89a545a83338eeb5133f95376ce261f517c6
parentfe24de3ef2b96ce82f3eddd2fc7ec87d6ea70ed2
st/icon: Add :is-symbolic property

It can be useful to know whether an icon displays a symbolic (rather
than just requesting it). Add a new :is-symbolic property for that
purpose, backed by private API on StImageContent that allows the
texture cache to shuffle that information through to the icon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3296>
src/st/st-icon.c
src/st/st-icon.h
src/st/st-image-content-private.h [new file with mode: 0644]
src/st/st-image-content.c
src/st/st-texture-cache.c